{{:ModuleInclude('public/header')}}

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <!-- nav start -->
        {{if !empty($siteset_nav_list) and is_array($siteset_nav_list)}}
            {{:ModuleInclude('public/nav_switch_tabs', [
                'nav_data'  => $siteset_nav_list,
                'view_type' => $view_type,
                'nav_type'  => $nav_type,
                'url'       => 'admin/site/index'
            ])}}
        {{/if}}
        <!-- nav end -->

        <!-- form start -->
        <form class="am-form form-validation am-form-popup-sticky" action="{{:MyUrl('admin/site/save')}}" method="POST" request-type="ajax-view" request-value="{{:MyUrl('admin/site/index', ['nav_type'=>$nav_type, 'view_type'=>$view_type])}}" enctype="multipart/form-data">
            <div class="nav-content">
                <div class="am-form-group">
                    <label>{{$data.common_goods_sales_price_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_sales_price_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_sales_price_status.only_tag}}" data-validation-message="{{$data.common_goods_sales_price_status.error_tips}}" required {{if isset($data['common_goods_sales_price_status']['value']) and $data['common_goods_sales_price_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_original_price_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_original_price_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_original_price_status.only_tag}}" data-validation-message="{{$data.common_goods_original_price_status.error_tips}}" required {{if isset($data['common_goods_original_price_status']['value']) and $data['common_goods_original_price_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_sales_price_unit_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_sales_price_unit_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_sales_price_unit_status.only_tag}}" data-validation-message="{{$data.common_goods_sales_price_unit_status.error_tips}}" required {{if isset($data['common_goods_sales_price_unit_status']['value']) and $data['common_goods_sales_price_unit_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_original_price_unit_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_original_price_unit_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_original_price_unit_status.only_tag}}" data-validation-message="{{$data.common_goods_original_price_unit_status.error_tips}}" required {{if isset($data['common_goods_original_price_unit_status']['value']) and $data['common_goods_original_price_unit_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_sales_number_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_sales_number_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_sales_number_status.only_tag}}" data-validation-message="{{$data.common_goods_sales_number_status.error_tips}}" required {{if isset($data['common_goods_sales_number_status']['value']) and $data['common_goods_sales_number_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_goods_inventory_status.name}}<span class="am-form-group-label-tips">{{$data.common_goods_inventory_status.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_goods_inventory_status.only_tag}}" data-validation-message="{{$data.common_goods_inventory_status.error_tips}}" required {{if isset($data['common_goods_inventory_status']['value']) and $data['common_goods_inventory_status']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_is_goods_detail_show_photo.name}}<span class="am-form-group-label-tips">{{$data.common_is_goods_detail_show_photo.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_is_goods_detail_show_photo.only_tag}}" data-validation-message="{{$data.common_is_goods_detail_show_photo.error_tips}}" required {{if isset($data['common_is_goods_detail_show_photo']['value']) and $data['common_is_goods_detail_show_photo']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_is_show_goods_comments.name}}<span class="am-form-group-label-tips">{{$data.common_is_show_goods_comments.describe}}</span></label>
                    <div class="am-radio-group">
                        {{foreach $common_is_text_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.id}}" name="{{$data.common_is_show_goods_comments.only_tag}}" data-validation-message="{{$data.common_is_show_goods_comments.error_tips}}" required {{if isset($data['common_is_show_goods_comments']['value']) and $data['common_is_show_goods_comments']['value'] eq $v['id']}}checked{{/if}} data-am-ucheck>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                </div>

                <div class="am-form-group">
                    <label>{{$data.common_show_goods_category_level.name}}<span class="am-form-group-label-tips">{{$data.common_show_goods_category_level.describe}}</span></label>
                    <div class="am-radio-group level-type">
                        {{foreach $common_show_goods_category_level_list as $v}}
                            <label class="am-radio-inline">
                                <input type="radio" value="{{$v.value}}" name="{{$data.common_show_goods_category_level.only_tag}}" data-validation-message="{{$data.common_show_goods_category_level.error_tips}}" {{if isset($data['common_show_goods_category_level']['value']) and $data['common_show_goods_category_level']['value'] eq $v['value']}}checked{{/if}} data-am-ucheck required>{{$v.name}}
                            </label>
                        {{/foreach}}
                    </div>
                    <div class="level-type-content am-margin-top">
                        {{foreach $common_show_goods_category_level_list as $v}}
                            <div class="item {{if isset($data['common_show_goods_category_level']['value']) and $data['common_show_goods_category_level']['value'] eq $v['value']}}am-active{{/if}}" data-key="{{$v.value}}">
                                <div class="am-flex am-flex-warp">
                                    <div class="am-flex am-flex-col am-gap-1">
                                        <img class="am-radius-lg" src="{{:StaticAttachmentUrl('site/siteset/website/web_level_'.$v['value'].'.png')}}" />
                                        <p>{{:MyLang('web_title')}}</p>
                                    </div>
                                    <div class="am-flex am-flex-col am-gap-1">
                                        <img class="am-radius-lg" src="{{:StaticAttachmentUrl('site/siteset/website/app_level_'.$v['value'].'.png')}}" />
                                        <p>{{:MyLang('app_title')}}</p>
                                    </div>
                                </div>
                            </div>
                        {{/foreach}}
                    </div>
                    {{if is_array(MyLang('site.goods_tips_list'))}}
                        <div class="am-tips-card">
                            <p>{{:implode('</p><p>', MyLang('site.goods_tips_list'))}}</p>
                        </div>
                    {{/if}}
                </div>
            </div>
            <div class="am-form-popup-submit">
                <input type="hidden" name="nav_type" value="{{$nav_type}}" />
                <input type="hidden" name="view_type" value="{{$view_type}}" />
                <button type="submit" class="am-btn am-btn-primary am-radius am-btn-xs btn-loading-example" data-am-loading="{spinner: 'circle-o-notch', loadingText:'{{:MyLang('save_title')}}'}">
                    <i class="am-icon-save"></i>
                    <span>{{:MyLang('save_title')}}</span>
                </button>
            </div>
        </form>
        <!-- form end -->
    </div>
</div>
<!-- right content end  -->

<!-- footer start -->
{{:ModuleInclude('public/footer')}}